<p>search works!</p>
<input type="text" [(ngModel)]="keywords" /> <button (click)="doSearch()">搜索</button>

<ul>
    <li *ngFor="let item of historyList;let key=index">
        {{item}}
        <button (click)="deleteHistory(key)">x</button>
    </li>
</ul>